home *** CD-ROM | disk | FTP | other *** search
/ Flash MX Savvy / FlashMX Savvy.iso / pc / WIN / UltraDev / UltraDev_Trial.exe / Disk1 / data1.cab / Configuration_En / Commands / EditOpsCustomObjs.js < prev    next >
Encoding:
JavaScript  |  2000-12-11  |  2.0 KB  |  73 lines

  1.  
  2. // Note: eo is simply short for Edit Ops
  3. // Each form type needed some type of preface because the form types could be reserved
  4. // JavaScript keywords, and eo seemed as good as any
  5.  
  6. function eoDisplayObj(type){
  7.   this.name = "";
  8. }
  9.  
  10. eoText.prototype = new eoDisplayObj;
  11. function eoText(text){
  12.   this.type = "text";
  13.   this.text = text || "";
  14. }
  15.  
  16. eoTextField.prototype = new eoDisplayObj;
  17. function eoTextField(value){
  18.   this.type = "textField";
  19.   this.value = value || "";
  20. }
  21.  
  22. eoTextArea.prototype = new eoDisplayObj;
  23. function eoTextArea(value){
  24.   this.type = "textArea";
  25.   this.value = value || "";
  26. }
  27.  
  28. eoCheckBox.prototype = new eoDisplayObj;
  29. function eoCheckBox(checked){
  30.   this.type = "checkBox";
  31.   this.checked = checked || false;
  32. }
  33.  
  34. eoDynamicCheckBox.prototype = new eoDisplayObj;
  35. function eoDynamicCheckBox(checkIf,equalTo){
  36.   this.type = "dynamicCheckBox";
  37.   this.checkIf = checkIf || "";
  38.   this.equalTo = equalTo || "";
  39. }
  40.  
  41. eoMenu.prototype = new eoDisplayObj;
  42. function eoMenu(textArr,valArr,defaultSelected){
  43.   this.type = "menu";
  44.   this.textArr = textArr || "";
  45.   this.valArr  = valArr || "";
  46.   this.defaultSelected = defaultSelected || "";
  47. }
  48.  
  49. eoDynamicMenu.prototype = new eoDisplayObj;
  50. function eoDynamicMenu(recordset,textCol,valCol,defaultSelected){
  51.   this.type = "dynamicMenu";
  52.   this.recordset = recordset || "";
  53.   this.textCol   = textCol || "";
  54.   this.valCol    = valCol || "";
  55.   this.defaultSelected = defaultSelected || "";
  56. }
  57.  
  58. eoRadioGroup.prototype = new eoDisplayObj;
  59. function eoRadioGroup(labelArr,valArr,defaultChecked){
  60.   this.type = "radioGroup";
  61.   this.labelArr = labelArr || "";
  62.   this.valArr   = valArr || "";
  63.   this.defaultChecked = defaultChecked || "";
  64. }
  65.  
  66. eoDynamicRadioGroup.prototype = new eoDisplayObj;
  67. function eoDynamicRadioGroup(recordset,labelCol,valueCol,defaultChecked){
  68.   this.type = "dynamicRadioGroup";
  69.   this.recordset = "";
  70.   this.labelCol  = "";
  71.   this.valCol  = "";
  72.   this.defaultChecked = "";
  73. }